package com.manage.platform.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 菜单
 */
@Data
@Accessors(chain = true)
public class MenuDto implements Serializable {

    @Schema(description = "菜单ID,修改必传")
    private Long id;

    @Schema(description = "父级菜单ID(0表示父级)", defaultValue = "0")
    private Long pid;

    @Schema(description = "菜单类型")
    private String type;

    @Schema(description = "菜单名称")
    private String name;

    @Schema(description = "图标")
    private String icon;

    @Schema(description = "菜单排序", defaultValue = "0")
    private Long sort;

    @Schema(description = "权限标识")
    private String perms;

    @Schema(description = "菜单路由")
    private String paths;

    @Schema(description = "组件路径")
    private String component;

    @Schema(description = "选中状态")
    private String selected;

    @Schema(description = "路由参数")
    private String params;

    @Schema(description = "是否缓存(0=否,1=是)", defaultValue = "0")
    private Integer isCache;

    @Schema(description = "是否展示(0=否,1=是)", defaultValue = "1")
    private Integer isShow;

    @Schema(description = "是否禁用(0=否,1=是)", defaultValue = "0")
    private Integer isDisable;

}
